package com.itcat.service.impl;/*
 * @Author: gonhsl
 * @Date:2022-04-02-16:01
 * */

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itcat.api.mysql.SmsFlashPromotionApi;
import com.itcat.mysql.pojo.SmsFlashPromotion;
import com.itcat.service.SmsFlashPromotionService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class SmsFlashPromotionServiceImpl implements SmsFlashPromotionService {
    @DubboReference
    private SmsFlashPromotionApi smsFlashPromotionApi;
    @Override
    public Page<SmsFlashPromotion> findList(Integer pageNum, Integer pageSize, String keyword) {
        Page<SmsFlashPromotion> page = smsFlashPromotionApi.findList(pageNum, pageSize, keyword);
        return page;
    }

    @Override
    public void create(SmsFlashPromotion smsFlashPromotion) {
        smsFlashPromotionApi.create(smsFlashPromotion);
    }

    @Override
    public void delete(Integer id) {
        smsFlashPromotionApi.delete(id);
    }

    @Override
    public void updateStatus(Integer id, Integer status) {
        smsFlashPromotionApi.updateStatus(id,status);
    }

    @Override
    public void update(SmsFlashPromotion smsFlashPromotion, Integer id) {
        smsFlashPromotionApi.update(smsFlashPromotion,id);
    }
}
